// ZipFile.h
#include "unzip.h"

#define COMPRESSION_LEVEL	1  /* as defined in zlib.h */

class CZipFile
{
public:
  CZipFile();
  ~CZipFile();

  bool Open(const TCHAR* szFile);
  void Close();

  bool GoToFirstFile();
  bool GoToNextFile();

  bool GoToFile(const TCHAR* szFile);

  bool GetFileInfo(DWORD& dwSize, TCHAR* sName = NULL, size_t nNameLen = 0);
  bool GetFileData(BYTE* pBuf, DWORD& dwBytes);

protected:
  unzFile m_uzFile;
};